osm: Fix errors when compiling without expat.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 3 Jun 2008 16:28:28 +0000 (16:28 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 3 Jun 2008 16:28:28 +0000 (16:28 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3251 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/osm.c

index 4900f069d28e5569ed5bfb683511e1b61c97a3a9..283d321eeb2ac3705ba3d67560c3d9ab0a9a55a6 100644 (file)
@@ -46,21 +46,6 @@ static int node_id;
 static route_head *rte;
 static int skip_rte;
 
-#if ! HAVE_LIBEXPAT
-
-void
-osm_rd_init(const char *fname)
-{
-       fatal(MYNAME ": This build excluded \" MYNAME \" support because expat was not installed.\n");
-}
-
-void
-osm_read(void)
-{
-}
-
-#else
-
 static waypoint *wpt;
 static int wpt_loaded, rte_loaded;
 
@@ -415,6 +400,22 @@ static osm_icon_mapping_t osm_icon_mappings[] = {
        { -1, NULL, NULL }
 };
 
+#if ! HAVE_LIBEXPAT
+
+void
+osm_rd_init(const char *fname)
+{
+       fatal(MYNAME ": This build excluded \" MYNAME \" support because expat was not installed.\n");
+}
+
+void
+osm_read(void)
+{
+}
+
+#else
+
+
 /*******************************************************************************/
 /*                                   READER                                    */
 /*-----------------------------------------------------------------------------*/